package edu.jamestang.yeb.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import edu.jamestang.yeb.entity.AdminRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * @author JamesTang
 * @date 2021/12/21 2:08
 */
@Mapper
public interface AdminRoleMapper extends BaseMapper<AdminRole> {


    /**
     * Update admin roles
     * @param adminId admin id
     * @param rids role id list
     * @return Response
     */
    Integer addAdminRole(@Param("adminId") Integer adminId, @Param("rids") Integer[] rids);
}
